package com.yihu.dataService.hessian.mongodb.interfaceService;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.yihu.beans.ResultVO;
import com.yihu.beans.user.Group;
import com.yihu.beans.user.GroupQuery;
import com.yihu.beans.user.User;
import com.yihu.beans.user.UserGroupRef;
@Repository(value="UserGroupDao")
public interface UserGroupHService {

	public ResultVO addGroup(Group group);
	public ResultVO deleteGroup(long id);
	public ResultVO updateGroup(Group group);
	public Group getGroup(long id);
	public String getGroupByPage(GroupQuery query);
	public Group  getUsersByGroupId(GroupQuery query);
	public ResultVO addUserToGroup(UserGroupRef ugr);
	public ResultVO deleteUserFromGroup(UserGroupRef ugr);
	public ResultVO assignUsers(UserGroupRef ugr);
	public List<User> getUsersByGroup(GroupQuery query);
	
}
